import { useNavigate } from "react-router-dom"
import { Button } from "@/shared/ui/button"
import { ChevronLeft } from "lucide-react"

export const GoBackButton = () => {
  const navigate = useNavigate()

  return (
    <Button size="icon" onClick={() => navigate(-1)} round variant="secondary">
      <ChevronLeft />
    </Button>
  )
}
